<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:sm="clr-namespace:QUT.Bio.SilverMap;assembly=QUT.Bio"
        xmlns:qututil="clr-namespace:QUT.Bio.Util;assembly=QUT.Bio"
        xmlns:gh="clr-namespace:BlastExplorer"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        x:Class="BlastExplorer.Window1"
        Title="SilverMap Blast Explorer"
        Width="800"
        Height="600"
        WindowStartupLocation="CenterScreen"
        WindowStyle="ThreeDBorderWindow">

    <!--<Window.Resources>
        <LinearGradientBrush x:Key="TheBrush"
                             EndPoint="0.5,1"
                             StartPoint="0.5,0">
            <GradientStop Color="#FF484C50"
                          Offset="0" />
            <GradientStop Color="#FF424242"
                          Offset="1" />
            <GradientStop Color="#FF151515"
                          Offset="0.781" />
        </LinearGradientBrush>

        <Style x:Key="TextBlockStyle"
               TargetType="{x:Type TextBlock}">
            <Setter Property="Margin"
                    Value="0 0 5 0" />
        </Style>

        <Style x:Key="TextBoxStyle"
               TargetType="{x:Type TextBox}">
            <Setter Property="Margin"
                    Value="0 0 5 0" />
        </Style>

        <Style x:Key="DefaultMenuStyle"
               TargetType="MenuItem">
            <Setter Property="HorizontalAlignment"
                    Value="Center" />
            <Setter Property="VerticalAlignment"
                    Value="Center" />
            <Setter Property="Margin"
                    Value="5,2" />
        </Style>
    </Window.Resources>-->

    <!--<Window.Background>
        <SolidColorBrush Color="{DynamicResource ShadeBrushGradient3}" />
    </Window.Background>-->
    
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/QUT.Bio;component/SilverMap/Simple Styles.xaml" />
                <ResourceDictionary Source="/QUT.Bio;component/SilverMap/Theme.xaml" />
                <ResourceDictionary Source="/QUT.Bio;component/SilverMap/HorizontalLayoutStyles.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid x:Name="LayoutRoot"
          HorizontalAlignment="Stretch">

        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Menu Margin="0"
              VerticalAlignment="Center">

            <Menu.Background>
                <SolidColorBrush Color="{DynamicResource NormalBrushGradient4}" />
            </Menu.Background>

            <MenuItem x:Name="MenuGI"
                      Header="New from Accession/GI"
                      Click="NewFromAccessionGI"
                      MouseEnter="MenuItem_MouseEnter" />

            <MenuItem x:Name="MenuGDB"
                      Header="New from GenomeDB"
                      Click="NewFromGenomeDB" />

            <MenuItem x:Name="MenuFastA"
                      Header="New from Sequence data"
                      Click="NewFromSequenceData" />

            <MenuItem x:Name="MenuLoad"
                      Header="Load Xml"
                      Click="LoadXml" />

            <MenuItem x:Name="MenuSave"
                      Header="Save Xml"
                      Click="SaveXml" />
        </Menu>

        <sm:MapControl x:Name="map"
                       Grid.Row="1"
                       Grid.Column="0"
                       Visibility="Visible"
                       d:IsHidden="True"
                       Foreground="{x:Null}"
                       Background="#7F9CC7EF" />

        <qututil:PopupOverlay x:Name="overlay"
                              Grid.Row="1"
                              Grid.Column="0" />

        <qututil:StatusBar Grid.Row="2"
                           x:Name="statusBar">
            <qututil:StatusBar.Background>
                <SolidColorBrush Color="{DynamicResource NormalBrushGradient4}" />
            </qututil:StatusBar.Background>
        </qututil:StatusBar>
    </Grid>
</Window>
